import { ListStore } from "@whzhuke/antd"
import React, { PropsWithChildren } from "react"
import { UserStore } from "./user.store"
export const StoreContextDefault = {
  UserStore: new UserStore(),
  ListStore: new ListStore()
}
export const StoreContext = React.createContext(StoreContextDefault)

export const StoreContextProvider = (props: PropsWithChildren) => {
  const { children } = props
  return <StoreContext.Provider value={StoreContextDefault}>{children}</StoreContext.Provider>
}
